from django.contrib import admin
from mhlandscaping.apps.home.models import Layout

class LayoutAdmin(admin.ModelAdmin):
    def save_model(self, request, obj, form, change):
        Layout.objects.all().delete()
        obj.save()
admin.site.register(Layout, LayoutAdmin)